package com.ydj.app.protocol.http.web;

import com.ydj.app.enumerate.ForecastQuestionCateEnum;
import com.ydj.app.protocol.dto.ForecastQaItemDto;
import com.ydj.framework.protocol.JsonBaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Setter
@Getter
@Accessors(chain = true)
public class WebForecastCommitReq extends JsonBaseRequest {

	@ApiModelProperty(value = "问题和答案队列", required = true)
	@NotNull(message = "缺少问题和答案队列")
	private List<ForecastQaItemDto> qaList;

	@ApiModelProperty(value = "预测类别", required = true)
	@NotNull(message = "缺少预测类别")
	private ForecastQuestionCateEnum cate;

	@ApiModelProperty(value = "联系方式", required = true)
	@NotBlank(message = "联系方式不能为空")
	private String contact;
}